package jNotesGUI;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;

public class MenuListener implements ActionListener
{
	ArrayList<String> MenuStrings;
	
	Main window;
	
	public MenuListener(ArrayList<String> locale)
	{
		MenuStrings = locale;
		getMain();
	}

	public void actionPerformed(ActionEvent e) 
	{
		String action = e.getActionCommand();
		
		System.out.println(action);
		//New Action
		if(action == MenuStrings.get(5));
			//window.addNote();
			
		System.out.println(window==null);
	}
	
	public void getMain()
	{
		window = Main.f;
	}

}
